<div nz-row class="title">
    注册审批
</div>
<!-- 个人用户 -->
<div *ngIf="userTable">
  <nz-table #nzTable [nzDataSource]="userList" nzSize="middle" [nzBordered]="true" [nzIsPagination]="false">
    <thead nz-thead>
      <tr>
        <th nz-th>
          <span>用户姓名</span>
        </th>
        <th nz-th>
          <span>身份证号</span>
        </th>
        <th nz-th>
          <span>用户类型</span>
        </th>
        <th nz-th>
          <span>用户持证类型</span>
        </th>
        <th nz-th>
          <span>证件号</span>
        </th>
        <th nz-th>
          <span>办公电话</span>
        </th>
        <th nz-th>
          <span>E-mail</span>
        </th>
        <th nz-th>
          <span>状态</span>
        </th>
      </tr>
    </thead>
    <tbody nz-tbody>
      <tr nz-tbody-tr *ngFor="let data of userList">
        <td nz-td>{{data.userName}}</td>
        <td nz-td>{{data.cardNumber}}</td>
        <td nz-td>{{data.roleId | constantTransfer:roleTypeList}}</td>
        <td nz-td>{{data.cardType}}</td>
        <td nz-td>{{data.cardTypeNumber}}</td>
        <td nz-td>{{data.mobile}}</td>
        <td nz-td>{{data.email}}</td>
        <td nz-td>
          <span>
            <button *ngIf="data.status == '2' " nz-button [nzSize]="'small'" [nzType]="'primary'" (click)="showDetail(content,data,footer)">已通过</button>
            <button *ngIf="data.status == '1' " nz-button [nzSize]="'small'" [nzType]="'primary'" (click)="showDetail(content,data,footer)">审批</button>
            <button *ngIf="data.status == '3' " nz-button [nzSize]="'small'" [nzType]="'primary'" (click)="showDetail(content,data,footer)">已拒绝</button>
          </span>
        </td>
      </tr>
    </tbody>
  </nz-table>
  <nz-pagination [nzPageIndex]="userCheckListBean.currentPage" nzShowTotal [nzTotal]="total" nzShowSizeChanger (nzPageSizeChange)="nzPageSizeChange_1($event)"
    (nzPageIndexChange)="nzPageIndexChange_1($event)" (nzPageIndexClickChange)="nzPageIndexClickChange_1($event)" [nzPageSize]="userCheckListBean.pageSize"></nz-pagination>
</div>

<!-- 企业用户 -->
<div *ngIf="partyTable">
  <nz-table #nzTable [nzDataSource]="partyList" nzSize="middle" [nzBordered]="true" [nzIsPagination]="false">
    <thead nz-thead>
      <tr>
        <th nz-th>
          <span>单位类型</span>
        </th>
        <th nz-th>
          <span>单位名称</span>
        </th>
        <th nz-th>
          <span>单位地址</span>
        </th>
        <th nz-th>
          <span>法人代表</span>
        </th>
        <th nz-th>
          <span>单位电话</span>
        </th>
        <th nz-th>
          <span>邮政编码</span>
        </th>
        <th nz-th>
          <span>组织机构代码/全国统一信用代码</span>
        </th>
        <th nz-th>
          <span>营业执照注册号</span>
        </th>
        <th nz-th>
          <span>所属行业</span>
        </th>
        <th nz-th>
          <span>状态</span>
        </th>
      </tr>
    </thead>
    <tbody nz-tbody>
      <tr nz-tbody-tr *ngFor="let data of partyList">
        <td nz-td>{{data.partyType | partyType}}</td>
        <td nz-td>{{data.partyName}}</td>
        <td nz-td>{{data.partyAddr}}</td>
        <td nz-td>{{data.corporation}}</td>
        <td nz-td>{{data.telephone}}</td>
        <td nz-td>{{data.postalCode}}</td>
        <td nz-td>{{data.creditCode}}</td>
        <td nz-td>{{data.businessLicenseNum}}</td>
        <td nz-td>{{data.industry}}</td>
        <td nz-td>
          <span>
            <button *ngIf="data.status == '2' " nz-button [nzSize]="'small'" [nzType]="'primary'" (click)="showDetail(content,data,footer)">已通过</button>
            <button *ngIf="data.status == '1' " nz-button [nzSize]="'small'" [nzType]="'primary'" (click)="showDetail(content,data,footer)">审批</button>
            <button *ngIf="data.status == '3' " nz-button [nzSize]="'small'" [nzType]="'primary'" (click)="showDetail(content,data,footer)">已拒绝</button>
          </span>
        </td>
      </tr>
    </tbody>
  </nz-table>
  <nz-pagination [nzPageIndex]="partyCheckListBean.currentPage" nzShowTotal [nzTotal]="total" nzShowSizeChanger (nzPageSizeChange)="nzPageSizeChange_2($event)"
    (nzPageIndexChange)="nzPageIndexChange_2($event)" (nzPageIndexClickChange)="nzPageIndexClickChange_2($event)" [nzPageSize]="partyCheckListBean.pageSize"></nz-pagination>
</div>
<nz-modal [nzVisible]="isVisible" [nzTitle]="'Modal'" [nzContent]="content">
  <ng-template #content>
    <register-check-detail #check [inValue]="giveValue" (outValue)="callBack($event)"></register-check-detail>
  </ng-template>
  <ng-template #footer>

  </ng-template>
</nz-modal>
